| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

BufferWrapper.h
1 // BufferWrapper.h
3 //
5
6 namespace nkAstraeus::nkMemoryWrap
7 {
11 class BufferWrapper final
12 {
13 public :
14
15 // Environment update
21 static void updateEnvironment (nkScripts::Environment* env) ;
22
23 // Callbacks
24 // Constructor, destructor
35 static nkScripts::OutputValue constructor (const nkScripts::DataStack& stack) ;
46 static nkScripts::OutputValue constructorFromString (const nkScripts::DataStack& stack) ;
52 static void destructor (void* toDestroy) ;
53 // Getters
64 static nkScripts::OutputValue getData (const nkScripts::DataStack& stack) ;
75 static nkScripts::OutputValue getSize (const nkScripts::DataStack& stack) ;
76 } ;
77 }
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkMemoryWrap::BufferWrapper::getData
static nkScripts::OutputValue getData(const nkScripts::DataStack &stack)
nkAstraeus::nkMemoryWrap::BufferWrapper::constructor
static nkScripts::OutputValue constructor(const nkScripts::DataStack &stack)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkMemoryWrap::BufferWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkAstraeus::nkMemoryWrap::BufferWrapper::constructorFromString
static nkScripts::OutputValue constructorFromString(const nkScripts::DataStack &stack)
nkAstraeus::nkMemoryWrap::BufferWrapper::destructor
static void destructor(void *toDestroy)
nkAstraeus::nkMemoryWrap
Encompasses the wrapping of nkMemory for scripting.
Definition: Constants.h:7
nkAstraeus::nkMemoryWrap::BufferWrapper
Wraps a nkMemory::Buffer and offers functions for use in scripting.
Definition: BufferWrapper.h:12
nkAstraeus::nkMemoryWrap::BufferWrapper::getSize
static nkScripts::OutputValue getSize(const nkScripts::DataStack &stack)